package com.b511.swpu.cementbackend.model;

import java.util.ArrayList;
import java.util.List;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Getter
@Setter
@EqualsAndHashCode
@Accessors(chain = true)
public class DataTable {
    public String TableName;

    public List<DataColumn> Columns=new ArrayList<DataColumn>();

    public List<DataRow> Rows=new ArrayList<DataRow>();

    public DataRow NewRow(){
        int colSize=Columns.size();
        DataRow row=new DataRow(colSize);
        Rows.add(row);
        return row;
    }
}
